/*
 * @Description: 
 * @Author: fhw
 * @Date: 2022-12-03 21:10:17
 */
import { MailerModule } from '@nestjs-modules/mailer';
import { PugAdapter } from '@nestjs-modules/mailer/dist/adapters/pug.adapter';
import { Module } from '@nestjs/common';
import { join } from 'path';
import { MailController } from './mail.controller';
import { EmailService } from './mail.service';
@Module({
    imports: [
        MailerModule.forRoot({
            transport: {
                host: 'smtp.exmail.qq.com',
                port: 465,
                ignoreTLS: true,
                secure: true,
                auth: {
                    user: '1129691449@qq.com',
                    pass: 'ipubvnlosgyyjcgc',
                },
            },
            defaults: {
                from: '"小方" <1129691449@qq.com>',
            },
            preview: false,
        }),
    ],
    controllers: [MailController],
    providers: [EmailService]
})
export class MailModule { }
